package com.fuxi.cloud.desreport.model;

import com.fuxi.cloud.common.vo.JmDictModel;

import java.io.Serializable;
import java.util.List;

/**
 * QueryVO
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
public class QueryVO implements Serializable {
    private static final long serialVersionUID = 1595756015382100119L;
    private String title;
    private String name;
    private String dbCode;
    private String dbText;
    private boolean duplicate;
    private String type;
    private Integer mode;
    private List<JmDictModel> dictList;

    public QueryVO() {
    }

    public QueryVO(String name, String title, String type, Integer mode, String dbCode, String dbText) {
        this.name = name;
        this.title = title;
        this.type = type;
        this.mode = mode;
        this.dbCode = dbCode;
        this.dbText = dbText;
    }

    public String getTitle() {
        return this.title;
    }

    public String getName() {
        return this.name;
    }

    public String getDbCode() {
        return this.dbCode;
    }

    public String getDbText() {
        return this.dbText;
    }

    public boolean isDuplicate() {
        return this.duplicate;
    }

    public String getType() {
        return this.type;
    }

    public Integer getMode() {
        return this.mode;
    }

    public List<JmDictModel> getDictList() {
        return this.dictList;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDbCode(String dbCode) {
        this.dbCode = dbCode;
    }

    public void setDbText(String dbText) {
        this.dbText = dbText;
    }

    public void setDuplicate(boolean duplicate) {
        this.duplicate = duplicate;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public void setDictList(List<JmDictModel> dictList) {
        this.dictList = dictList;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof QueryVO)) {
            return false;
        } else {
            QueryVO var2 = (QueryVO)o;
            if (!var2.canEqual(this)) {
                return false;
            } else if (this.isDuplicate() != var2.isDuplicate()) {
                return false;
            } else {
                label97: {
                    Integer var3 = this.getMode();
                    Integer var4 = var2.getMode();
                    if (var3 == null) {
                        if (var4 == null) {
                            break label97;
                        }
                    } else if (var3.equals(var4)) {
                        break label97;
                    }

                    return false;
                }

                String var5 = this.getTitle();
                String var6 = var2.getTitle();
                if (var5 == null) {
                    if (var6 != null) {
                        return false;
                    }
                } else if (!var5.equals(var6)) {
                    return false;
                }

                String var7 = this.getName();
                String var8 = var2.getName();
                if (var7 == null) {
                    if (var8 != null) {
                        return false;
                    }
                } else if (!var7.equals(var8)) {
                    return false;
                }

                label76: {
                    String var9 = this.getDbCode();
                    String var10 = var2.getDbCode();
                    if (var9 == null) {
                        if (var10 == null) {
                            break label76;
                        }
                    } else if (var9.equals(var10)) {
                        break label76;
                    }

                    return false;
                }

                String var11 = this.getDbText();
                String var12 = var2.getDbText();
                if (var11 == null) {
                    if (var12 != null) {
                        return false;
                    }
                } else if (!var11.equals(var12)) {
                    return false;
                }

                String var13 = this.getType();
                String var14 = var2.getType();
                if (var13 == null) {
                    if (var14 != null) {
                        return false;
                    }
                } else if (!var13.equals(var14)) {
                    return false;
                }

                List var15 = this.getDictList();
                List var16 = var2.getDictList();
                if (var15 == null) {
                    if (var16 != null) {
                        return false;
                    }
                } else if (!var15.equals(var16)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof QueryVO;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        int var10 = var2 * 59 + (this.isDuplicate() ? 79 : 97);
        Integer var3 = this.getMode();
        var10 = var10 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getTitle();
        var10 = var10 * 59 + (var4 == null ? 43 : var4.hashCode());
        String var5 = this.getName();
        var10 = var10 * 59 + (var5 == null ? 43 : var5.hashCode());
        String var6 = this.getDbCode();
        var10 = var10 * 59 + (var6 == null ? 43 : var6.hashCode());
        String var7 = this.getDbText();
        var10 = var10 * 59 + (var7 == null ? 43 : var7.hashCode());
        String var8 = this.getType();
        var10 = var10 * 59 + (var8 == null ? 43 : var8.hashCode());
        List var9 = this.getDictList();
        var10 = var10 * 59 + (var9 == null ? 43 : var9.hashCode());
        return var10;
    }

    @Override
    public String toString() {
        return "QueryVO(title=" + this.getTitle() + ", name=" + this.getName() + ", dbCode=" + this.getDbCode() + ", dbText=" + this.getDbText() + ", duplicate=" + this.isDuplicate() + ", type=" + this.getType() + ", mode=" + this.getMode() + ", dictList=" + this.getDictList() + ")";
    }
}
